package com.auxgroup.smarthome.business.service.inner;

import com.auxgroup.bridge.app.inner.vo.DeviceRepairVo;
import com.auxgroup.smarthome.business.service.DeviceRepairInnerServiceFallback;
import com.auxgroup.smarthome.utils.PageContent;
import com.auxgroup.smarthome.web.ApiResponse;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 设备故障调用inner接口
 * Created by lixiaoxiao on 17-8-9.
 */
@FeignClient(name="INNER-SERVICE", fallback = DeviceRepairInnerServiceFallback.class)
public interface DeviceRepairInnerService {

    @RequestMapping(value = "/inner/device_repair", method = RequestMethod.GET)
    ApiResponse<PageContent<DeviceRepairVo>> getDeviceRepairList(@RequestParam("keyword") String keyword, @RequestParam("page") Integer page, @RequestParam("size") Integer size);

}
